//
//  StarInfoGuardCell.m
//  LiveStar
//
//  Created by 漪珊 on 2017/5/2.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "StarInfoGuardCell.h"

@implementation StarInfoGuardCell
- (void)awakeFromNib {
    [super awakeFromNib];
    self.imageArray = @[self.guardFirstIcon,self.guardSecondIcon,self.guardThirdIcon,self.guardFourthIcon];
}

- (void)setDataArray:(NSMutableArray *)dataArray {
    for (int i = 0; i<dataArray.count; i++) {
        UIImageView *imgView = (UIImageView *)self.imageArray[i];
        [imgView sd_setImageWithURL:[NSURL URLWithString:dataArray[i]] completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {
            if (image) {
                imgView.image = image;
            }
        }];
    }
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
